from openpyxl import Workbook

# There is no need to create a file on the filesystem to get started with openpyxl. Just import the Workbook class and start work
wb = Workbook()

# A workbook is always created with at least one worksheet. You can get it by using the Workbook.active property
ws = wb.active

for row in range(1, 40):
    ws.append(range(50))
